﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="_juegos.ascx.cs" Inherits="BoxScore.juego._juego" %>

<h2>Proximos Juegos</h2>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" ShowHeader="false" 
    DataSourceID="ObjectDataSource1" Width="230px" GridLines="None">
    
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <ItemTemplate>
            <table width="100%">
                <tr>
                    <th colspan="2" class="barra"><asp:Label ID="Label3" runat="server" Text='<%# Eval("scheduled", "{0:G}") %>'></asp:Label></th>
                </tr>
                <tr>
                    <th align="left" style="width: 140px;">
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id_team_visitor", "{0}") %>' 
                            Text='<%# Eval("team_visitor", "{0}") %>'></asp:HyperLink>
                    </td>
                    <td rowspan="2" valign="middle">Vs.</td>
                </tr>
                <tr>
                    <th align="left" style="width: 140px;">
                        <asp:HyperLink ID="HyperLink2" runat="server" 
                            NavigateUrl='<%# "~/Equipo/Detalles.aspx?equipo=" + Eval("id_team_hc", "{0}") %>' 
                            Text='<%# Eval("team_hc", "{0}") %>'></asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        
                    </td>
                    <td></td>
                </tr>

            
            </table>
            
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
    SelectMethod="getNextGamesByTournament" 
    TypeName="BoxScore.Model.BoxScoreBD">
    <SelectParameters>
        <asp:QueryStringParameter DefaultValue="0" Name="idtorneo" 
            QueryStringField="torneo" Type="Int32" />
    </SelectParameters>
</asp:ObjectDataSource>

